package com.example.demo_test.web.configration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname Testconfig
 * @Description TODO
 * @Date 2019/1/28 15:25
 * @Created by pc
 */
@Configuration
public class Testconfig {

    private static String ipAddr;

    public static String getIpAddr() {
        return ipAddr;
    }

    @Value("${static.ipAddr}")
    public void setIpAddr(String ipAddr) {
        Testconfig.ipAddr = ipAddr;
    }



}
